export default {
  data () {
    return {
      list_c: [
        { label: '编号', prop: 'id' },
        { label: '流水号', prop: 'serialNo' },
        { label: '计划编号', prop: 'planNo' },
        { label: '作业名称', prop: 'productJob.jobName' },
        { label: '物料名称', prop: 'materialName' },
        { label: '规格', prop: 'specification' },
        { label: '型号', prop: 'model' },
        { label: '单位', prop: 'unit' },
        { label: '检验项', prop: 'inspectionItem' },
        { label: '生产数量', prop: 'productQuantity' },
        { label: '抽检数量', prop: 'samplingQuantity' },
        { label: '检验值', prop: 'inspectionValue' },
        { label: '阈值上限', prop: 'standard.upperLimit' },
        { label: '阈值下限', prop: 'standard.lowerLimit' },
        { label: '检验结果', prop: 'inspectionResult' },
        { label: '检验人', prop: 'inspector' },
        { label: '检验时间', prop: 'inspectionDate' },
      ],
      list_q: {
        serialNo: null,
        planNo: null,
        jobName: null,
        materialName: null,
        inspectionItem: null,
        inspectionResult: null,
        inspector: null,
        inspectionStartDate: null,
        inspectionEndDate: null,
        inspectionAttr: []
      },
      list_q_c: [
        { form_item_prop: { label: '流水号', prop: 'serialNo' }, component_name: 'el-input' },
        { form_item_prop: { label: '计划编号', prop: 'planNo' }, component_name: 'el-input' },
        { form_item_prop: { label: '作业名称', prop: 'jobName' }, component_name: 'el-input' },
        { form_item_prop: { label: '物料名称', prop: 'materialName' }, component_name: 'el-input' },
        { form_item_prop: { label: '检验项', prop: 'inspectionItem' }, component_name: 'el-input' },
        { form_item_prop: { label: '检验结果', prop: 'inspectionResult' }, component_name: 'el-select', component_prop: { option_data: [{ value: '合格' }, { value: '不合格' }], option_prop: { value: 'value', label: 'value' } } },
        { form_item_prop: { label: '检验人', prop: 'inspector' }, component_name: 'el-input' },
        { form_item_prop: { label: '检验时间', prop: 'inspectionAttr' }, component_name: 'el-date-picker', component_prop: { 'value-format': '	yyyy-MM-dd hh:mm:ss', type: 'datetimerange', 'range-separator': "至", 'start-placeholder': "开始日期", 'end-placeholder': "结束日期" } },
      ],
      list_e: {
        id: null,
        inspectionResult: null,
        inspectionValue: null,
        jobId: null,
        jobName: null,
        planNo: null,
        product: null,
        remark: null,
        samplingQuantity: null,
        standardId: null,
        inspectionItem: null
      },
      list_e_c: [
        { form_item_prop: { label: '作业名称', prop: 'jobName', required: true }, component_name: 'el-input', component_prop: { disabled: true } },
        { form_item_prop: { label: '产品名称', prop: 'product', required: true }, component_name: 'el-input', },
        { form_item_prop: { label: '采样数量', prop: 'samplingQuantity', required: true }, component_name: 'el-input-number', component_prop: { min: 1 } },
        { form_item_prop: { label: '检验标准', prop: 'inspectionItem', required: true }, component_name: 'el-input', component_name: 'el-input', component_prop: { disabled: true } },
        { form_item_prop: { label: '检验值', prop: 'inspectionValue', required: true }, component_name: 'el-input', },
        { form_item_prop: { label: '检验结果', prop: 'inspectionResult', required: true }, component_name: 'el-input', },
        { form_item_prop: { label: '备注', prop: 'remark' }, component_name: 'el-input', component_prop: { type: 'textarea' } },
      ],
      list_job_c: [
        { label: '作业名称', prop: 'jobName' },
        { label: '计划单号', prop: 'planNo' },
        { label: '产品', prop: 'product' },
        { label: '型号', prop: 'productModel' },
        { label: '生产数量', prop: 'productQuantity' },
        { label: '规格', prop: 'productSpecification' },
        { label: '单位', prop: 'productUnit' },
        { label: '状态', prop: 'status' },
      ],
      list_standard_c: [
        { label: '检验项', prop: 'inspectionItem' },
        { label: '检验类型', prop: 'inspectionType' },
        { label: '下限阈值', prop: 'lowerLimit' },
        { label: '上限阈值', prop: 'upperLimit' },
        { label: '物料名称', prop: 'material.name' },
        { label: '描述  ', prop: 'description' },
      ],
      pager: {
        page: 1,
        limit: 10,
        total: 0
      },
    }
  },
  methods: {
  },
}